.controls-container {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000; /* 确保控制栏在最顶层 */
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  padding: 16px 24px;
  transition: opacity 0.3s ease;
}

.controls-container:hover {
  transform: translateX(-50%) translateY(-5px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.progress-bar {
  margin: 8px 0;
}

/* 进度条样式 */
.slider-track {
  height: 3px !important;
  background-color: rgba(255,255,255,0.2) !important;
}

.slider-bar {
  background-color: #0A84FF !important; /* 系统蓝色 */
  height: 2px !important;
}

.slider-thumb {
  width: 14px !important;
  height: 14px !important;
  border: 2px solid #0A84FF !important;
  background: #FFFFFF !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

/* 时间显示优化 */
.time-display {
  font-family: 'SF Mono', monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: -0.24px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  min-width: 120px;
  text-align: center;
}

/* 播放按钮重设计 */
.play-pause-btn {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.play-pause-btn:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  transform: scale(1.08);
}

/* 速度选择器样式 */
.speed-select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 2px 24px 2px 8px;
  font-size: 12px;
  color: white;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg width='12' height='12' viewBox='0 0 24 24' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
}

/* 音量控制 */
.volume-control:hover .volume-slider {
  opacity: 1;
  visibility: visible;
}

.volume-slider {
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  width: 100px;
  padding: 8px;
  background: rgba(0,0,0,0.7);
  border-radius: 6px;
  position: absolute;
  bottom: 40px;
  right: 0;
}

/* 确保控件在深色背景上可见 */
.controls-container .mantine-ActionIcon-root {
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  padding: 8px;
  transition: none !important; 
}

.controls-container .mantine-Slider-root {
  width: 100%;
}

/* 强制显示控件 */
.controls-container {
  opacity: 1 !important; /* 覆盖原有透明设置 */
  z-index: 9999; /* 确保最高层级 */
  background: rgba(0,0,0,0.8) !important; /* 显式背景色 */
}

/* 隐藏原生控件 */
video::-webkit-media-controls {
  display: none !important;
}
